{include file="header.tpl" title="$title"}

			{if $photograph}
			<div id="photograph">
				<img src="image.php?id=<?php echo $id; ?>" />
			</div>
			{/if}

			<div id="account">
				<h2>Account Information</h2>

				<h3>Name:</h3>
				<p>{$name}</p>

			{if $gender}
				<h3>Gender</h3>
				<p><img src="images/user_{$gender|lower}.png" alt="{$gender|capitalize} User" /> {$gender|capitalize}</p>
			{/if}

			{if $phonenumber}
				<h3>Phone Number:</h3>
				<p>{$phonenumber|phone_format}</p>
			{/if}

			{if $address}
				<h3>Current Address:</h3>
				<p>{$address}</p>
			{/if}

         {if $groupname}
				<h3>User Group:</h3>
				<p>{$groupname}</p>
         {/if}

			{if $self}
				<h4><a href="editAccount.php?id={$id}">Edit account</a></h4>
			{/if}
			</div>

			{if $email || $aim || $yim || $msn}
			<div id="internet">
				<h2>Internet Information</h2>

				{if $email}
				<h3>Email:</h3>
				<p>{mailto address="$email" encode="javascript_charcode"}</p>
				{/if}

				{if $aim}
				<h3>AIM:</h3>
				<p>{$aim} [<a href="aim:goim?screenname={$aim}">Send Message</a>]</p>
				{/if}

				{if $yim}
				<h3>YIM:</h3>
				<p>{$yim}</p>
				{/if}

				{if $msn}
				<h3>MSN:</h3>
				<p>{$msn}></p>
				{/if}
			</div>
			{/if}

			{if $payments}
			<div id="payments">
				<h2>Payments</h2>

				<table class="display">
					<thead>
						<tr>
							<th class="date">Date</th>
							<th class="amount">Amount</th>
							<th>Reason</th>
						</tr>
					</thead>
					<tbody>
					{section name=payment loop=$payments}
					{strip}
						<tr class="{cycle values="gray,white"}">
							<td>{$payments[payment].date}</td>
							<td class="{$payments[payment].sign} payments">${$payments[payment].amount}</td>
							<td>{$payments[payment].reason}</td>
						</tr>
					{/strip}
					{/section}
					</tbody>
					<tfoot>
						<tr>
							<th>Balance:</th>
							<td class="{$balanceSign} payments">${$balance}</td>
							<td>&nbsp;</td>
						</tr>
					</tfoot>
				</table>
			</div>
			{/if}

{include file="footer.tpl"}
